import request from '@/utils/request'
export default{
    addCourseInfo(courseInfo){
        return request({
           // url: '/eduservice/teacher/pageTeacherCondition/'+current+"/"+limit,
            url:'/eduservice/course/addCourseInfo',
            method: 'post',
            data:courseInfo
          })
    },
    getListTeacher(){
        return request({
            // url: '/eduservice/teacher/pageTeacherCondition/'+current+"/"+limit,
             url:'/eduservice/teacher/findAll',
             method: 'get',
             
           })
    },
    getCourseInfoId(id){
        return request({
            // url: '/eduservice/teacher/pageTeacherCondition/'+current+"/"+limit,
             url:'/eduservice/course/getCourseInfo/'+id,
             method: 'get',
             
           })
    },
    updateCourseInfo(courseInfo){
        return request({
            // url: '/eduservice/teacher/pageTeacherCondition/'+current+"/"+limit,
             url:'/eduservice/course/updateCourseInfo/',
             method: 'post',
             data:courseInfo
             
           })
    } ,//课程确认信息显示
    getPublihCourseInfo(id) {
        return request({
            url: '/eduservice/course/getPublishCourseInfo/'+id,
            method: 'get'
          })
    },
     //课程最终发布
     publihCourse(id) {
        return request({
            url: '/eduservice/course/publishCourse/'+id,
            method: 'post'
          })
    },
    //TODO 课程列表
    //课程最终发布
    getListCourse() {
        return request({
            url: '/eduservice/course',
            method: 'get'
          })
    }
    
}

